﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IM.Easy.GenServices.Dtos.Gen
{
    /// <summary>
    /// 服务模板模型，用于生成服务类
    /// </summary>
    public class ServiceTemplateModel : IModel
    {
        /// <summary>
        /// 使用的命名空间列表
        /// </summary>
        public List<string> Usings { get; set; } = [];

        /// <summary>
        /// 命名空间
        /// </summary>
        public string Namespace { get; set; }

        /// <summary>
        /// 类名
        /// </summary>
        public string ClassName { get; set; }

        /// <summary>
        /// 接口名
        /// </summary>
        public string InterfaceName { get; set; }

        /// <summary>
        /// 返回类型
        /// </summary>
        public string ReturnType { get; set; }

        /// <summary>
        /// 实体类型
        /// </summary>
        public string EntityType { get; set; }

        /// <summary>
        /// ID类型
        /// </summary>
        public GenTableColumnDto PrimaryKey { get; set; }

        /// <summary>
        /// 查询列
        /// </summary>
        public List<GenTableColumnDto> QueryColumns { get; set; }
    }

}
